home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Environments / MPWPascal / PExamples / SillyBalls.p < prev    next >
MacBinary  |  1988-11-30  |  9.1 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Nov 30 12:00:00 1988, modified Wed Nov 30 12:00:00 1988, creator 'MPS ', type ASCII, 8577 bytes "SillyBalls.p" , at 0x2201 431 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 53 69 6c 6c 79 42 | 61 6c 6c 73 2e 70 00 00 |..SillyB|alls.p..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 21 81 00 | 00 01 af 9f b9 d9 90 9f |.....!..|........|
|00000060| b9 d9 90 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 91 5c 00 00 |........|.....\..|
|00000080| 7b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{-------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000000d0| 23 0d 23 09 4d 61 63 69 | 6e 74 6f 73 68 20 44 65 |#.#.Maci|ntosh De|
|000000e0| 76 65 6c 6f 70 65 72 20 | 54 65 63 68 6e 69 63 61 |veloper |Technica|
|000000f0| 6c 20 53 75 70 70 6f 72 | 74 0d 23 0d 23 09 53 69 |l Suppor|t.#.#.Si|
|00000100| 6d 70 6c 65 20 43 6f 6c | 6f 72 20 51 75 69 63 6b |mple Col|or Quick|
|00000110| 44 72 61 77 20 53 61 6d | 70 6c 65 20 41 70 70 6c |Draw Sam|ple Appl|
|00000120| 69 63 61 74 69 6f 6e 0d | 23 0d 23 09 53 69 6c 6c |ication.|#.#.Sill|
|00000130| 79 42 61 6c 6c 73 0d 23 | 0d 23 09 53 69 6c 6c 79 |yBalls.#|.#.Silly|
|00000140| 42 61 6c 6c 73 2e 70 09 | 2d 09 50 61 73 63 61 6c |Balls.p.|-.Pascal|
|00000150| 20 53 6f 75 72 63 65 0d | 23 0d 23 09 43 6f 70 79 | Source.|#.#.Copy|
|00000160| 72 69 67 68 74 20 a9 20 | 31 39 38 38 20 41 70 70 |right . |1988 App|
|00000170| 6c 65 20 43 6f 6d 70 75 | 74 65 72 2c 20 49 6e 63 |le Compu|ter, Inc|
|00000180| 2e 0d 23 09 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |..#.All |rights r|
|00000190| 65 73 65 72 76 65 64 2e | 0d 23 0d 23 09 56 65 72 |eserved.|.#.#.Ver|
|000001a0| 73 69 6f 6e 73 3a 09 31 | 2e 31 09 28 4d 50 57 20 |sions:.1|.1.(MPW |
|000001b0| 33 2e 30 20 46 69 6e 61 | 6c 29 09 38 2f 38 38 0d |3.0 Fina|l).8/88.|
|000001c0| 23 0d 23 09 43 6f 6d 70 | 6f 6e 65 6e 74 73 3a 09 |#.#.Comp|onents:.|
|000001d0| 53 69 6c 6c 79 42 61 6c | 6c 73 2e 70 09 09 41 75 |SillyBal|ls.p..Au|
|000001e0| 67 75 73 74 20 38 2c 20 | 31 39 38 38 0d 23 09 09 |gust 8, |1988.#..|
|000001f0| 09 09 53 69 6c 6c 79 42 | 61 6c 6c 73 2e 63 09 09 |..SillyB|alls.c..|
|00000200| 41 75 67 75 73 74 20 38 | 2c 20 31 39 38 38 0d 23 |August 8|, 1988.#|
|00000210| 09 09 09 09 28 50 29 53 | 69 6c 6c 79 42 61 6c 6c |....(P)S|illyBall|
|00000220| 73 2e 6d 61 6b 65 09 41 | 75 67 75 73 74 20 38 2c |s.make.A|ugust 8,|
|00000230| 20 31 39 38 38 0d 23 09 | 09 09 09 28 43 29 53 69 | 1988.#.|...(C)Si|
|00000240| 6c 6c 79 42 61 6c 6c 73 | 2e 6d 61 6b 65 09 41 75 |llyBalls|.make.Au|
|00000250| 67 75 73 74 20 38 2c 20 | 31 39 38 38 0d 23 0d 23 |gust 8, |1988.#.#|
|00000260| 09 54 68 69 73 20 69 73 | 20 61 20 76 65 72 79 20 |.This is| a very |
|00000270| 73 69 6d 70 6c 65 20 73 | 61 6d 70 6c 65 20 70 72 |simple s|ample pr|
|00000280| 6f 67 72 61 6d 20 74 68 | 61 74 20 64 65 6d 6f 6e |ogram th|at demon|
|00000290| 73 74 72 61 74 65 73 20 | 68 6f 77 20 74 6f 20 75 |strates |how to u|
|000002a0| 73 65 20 43 6f 6c 6f 72 | 20 0d 23 09 51 75 69 63 |se Color| .#.Quic|
|000002b0| 6b 44 72 61 77 2e 20 20 | 49 74 20 69 73 20 61 62 |kDraw. |It is ab|
|000002c0| 6f 75 74 20 74 77 6f 20 | 70 61 67 65 73 20 6f 66 |out two |pages of|
|000002d0| 20 63 6f 64 65 2c 20 61 | 6e 64 20 64 6f 65 73 20 | code, a|nd does |
|000002e0| 6e 6f 74 68 69 6e 67 20 | 6d 6f 72 65 20 74 68 61 |nothing |more tha|
|000002f0| 6e 20 6f 70 65 6e 0d 23 | 09 61 20 63 6f 6c 6f 72 |n open.#|.a color|
|00000300| 20 77 69 6e 64 6f 77 20 | 61 6e 64 20 64 72 61 77 | window |and draw|
|00000310| 20 72 61 6e 64 6f 6d 6c | 79 20 63 6f 6c 6f 72 65 | randoml|y colore|
|00000320| 64 20 6f 76 61 6c 73 20 | 69 6e 20 74 68 65 20 77 |d ovals |in the w|
|00000330| 69 6e 64 6f 77 2e 0d 23 | 09 0d 23 09 54 68 65 20 |indow..#|..#.The |
|00000340| 70 75 72 70 6f 73 65 20 | 69 73 20 74 6f 20 73 68 |purpose |is to sh|
|00000350| 6f 77 20 68 6f 77 20 74 | 6f 20 67 65 74 20 73 6f |ow how t|o get so|
|00000360| 6d 65 20 69 6e 69 74 69 | 61 6c 20 72 65 73 75 6c |me initi|al resul|
|00000370| 74 73 20 77 69 74 68 20 | 43 6f 6c 6f 72 20 51 75 |ts with |Color Qu|
|00000380| 69 63 6b 44 72 61 77 2e | 0d 23 09 49 74 20 69 73 |ickDraw.|.#.It is|
|00000390| 20 61 20 63 6f 6d 70 6c | 65 74 65 20 70 72 6f 67 | a compl|ete prog|
|000003a0| 72 61 6d 20 61 6e 64 20 | 69 73 20 76 65 72 79 20 |ram and |is very |
|000003b0| 73 68 6f 72 74 20 74 6f | 20 62 65 20 61 73 20 63 |short to| be as c|
|000003c0| 6c 65 61 72 20 61 73 20 | 70 6f 73 73 69 62 6c 65 |lear as |possible|
|000003d0| 2e 0d 23 09 0d 23 09 49 | 74 20 64 6f 65 73 20 6e |..#..#.I|t does n|
|000003e0| 6f 74 20 68 61 76 65 20 | 61 6e 20 45 76 65 6e 74 |ot have |an Event|
|000003f0| 20 4c 6f 6f 70 2e 20 20 | 49 74 20 69 73 20 6e 6f | Loop. |It is no|
|00000400| 74 20 66 75 6c 6c 79 20 | 66 75 6e 63 74 69 6f 6e |t fully |function|
|00000410| 61 6c 20 69 6e 20 74 68 | 65 20 73 65 6e 73 65 20 |al in th|e sense |
|00000420| 74 68 61 74 0d 23 09 69 | 74 20 64 6f 65 73 20 6e |that.#.i|t does n|
|00000430| 6f 74 20 64 6f 20 61 6c | 6c 20 74 68 65 20 74 68 |ot do al|l the th|
|00000440| 69 6e 67 73 20 79 6f 75 | 20 77 6f 75 6c 64 20 65 |ings you| would e|
|00000450| 78 70 65 63 74 20 61 20 | 77 65 6c 6c 20 62 65 68 |xpect a |well beh|
|00000460| 61 76 65 64 20 4d 61 63 | 69 6e 74 6f 73 68 20 0d |aved Mac|intosh .|
|00000470| 23 09 70 72 6f 67 72 61 | 6d 20 74 6f 20 64 6f 2c |#.progra|m to do,|
|00000480| 20 6c 69 6b 65 20 73 69 | 7a 65 20 74 68 65 20 77 | like si|ze the w|
|00000490| 69 6e 64 6f 77 20 6e 61 | 74 75 72 61 6c 6c 79 2c |indow na|turally,|
|000004a0| 20 68 61 76 65 20 61 6e | 20 65 76 65 6e 74 20 6c | have an| event l|
|000004b0| 6f 6f 70 2c 20 75 73 65 | 20 6d 65 6e 75 73 2c 20 |oop, use| menus, |
|000004c0| 0d 23 09 65 74 63 2e 0d | 23 0d 23 09 53 65 65 20 |.#.etc..|#.#.See |
|000004d0| 53 61 6d 70 6c 65 20 61 | 6e 64 20 54 45 53 61 6d |Sample a|nd TESam|
|000004e0| 70 6c 65 20 66 6f 72 20 | 74 68 65 20 67 65 6e 65 |ple for |the gene|
|000004f0| 72 61 6c 20 73 74 72 75 | 63 74 75 72 65 20 61 6e |ral stru|cture an|
|00000500| 64 20 4d 75 6c 74 69 46 | 69 6e 64 65 72 20 74 65 |d MultiF|inder te|
|00000510| 63 68 6e 69 71 75 65 73 | 20 74 68 61 74 0d 23 09 |chniques| that.#.|
|00000520| 77 65 20 72 65 63 6f 6d | 6d 65 6e 64 20 74 68 61 |we recom|mend tha|
|00000530| 74 20 79 6f 75 20 75 73 | 65 20 77 68 65 6e 20 62 |t you us|e when b|
|00000540| 75 69 6c 64 69 6e 67 20 | 61 20 6e 65 77 20 61 70 |uilding |a new ap|
|00000550| 70 6c 69 63 61 74 69 6f | 6e 2e 0d 23 0d 2d 2d 2d |plicatio|n..#.---|
|00000560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000580| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000590| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 7d 0d 0d 50 72 |--------|---}..Pr|
|000005b0| 6f 67 72 61 6d 20 53 69 | 6c 6c 79 42 61 6c 6c 73 |ogram Si|llyBalls|
|000005c0| 3b 0d 28 2a 0d 09 56 65 | 72 73 69 6f 6e 20 31 2e |;.(*..Ve|rsion 1.|
|000005d0| 30 3a 20 36 2f 32 2f 38 | 38 0d 09 0d 09 70 75 72 |0: 6/2/8|8....pur|
|000005e0| 70 6f 73 65 09 09 54 6f | 20 64 65 6d 6f 6e 73 74 |pose..To| demonst|
|000005f0| 72 61 74 65 20 61 20 73 | 69 6d 70 6c 65 20 63 6f |rate a s|imple co|
|00000600| 6c 6f 72 20 41 70 70 20 | 75 73 69 6e 67 20 43 6f |lor App |using Co|
|00000610| 6c 6f 72 20 51 75 69 63 | 6b 44 72 61 77 2e 0d 09 |lor Quic|kDraw...|
|00000620| 09 09 09 09 09 49 74 20 | 64 72 61 77 73 20 63 6f |.....It |draws co|
|00000630| 6c 6f 72 65 64 20 62 61 | 6c 6c 73 20 69 6e 20 61 |lored ba|lls in a|
|00000640| 20 63 6f 6c 6f 72 20 77 | 69 6e 64 6f 77 2c 20 74 | color w|indow, t|
|00000650| 68 65 6e 20 75 73 65 73 | 20 63 6f 6c 6f 72 65 64 |hen uses| colored|
|00000660| 0d 09 09 09 09 09 09 74 | 65 78 74 20 69 6e 76 65 |.......t|ext inve|
|00000670| 72 74 65 64 20 69 6e 20 | 74 68 65 20 62 61 6c 6c |rted in |the ball|
|00000680| 2e 20 20 54 68 65 20 62 | 61 6c 6c 20 6c 6f 63 61 |. The b|all loca|
|00000690| 74 69 6f 6e 20 61 6e 64 | 20 63 6f 6c 6f 72 20 69 |tion and| color i|
|000006a0| 73 20 52 61 6e 64 6f 6d | 2e 0d 09 09 09 09 09 09 |s Random|........|
|000006b0| 0d 09 09 09 09 09 09 54 | 68 69 73 20 70 72 6f 67 |.......T|his prog|
|000006c0| 72 61 6d 20 77 61 73 20 | 77 72 69 74 74 65 6e 20 |ram was |written |
|000006d0| 62 79 20 42 6f 33 62 20 | 4a 6f 68 6e 73 6f 6e 2c |by Bo3b |Johnson,|
|000006e0| 20 31 2f 38 38 2e 0d 09 | 09 09 09 09 09 0d 09 09 | 1/88...|........|
|000006f0| 09 09 09 09 54 68 65 20 | 69 6e 76 65 72 74 65 64 |....The |inverted|
|00000700| 20 42 6f 62 20 74 65 78 | 74 20 77 61 73 20 61 20 | Bob tex|t was a |
|00000710| 53 6b 69 70 70 79 20 42 | 6c 61 69 72 20 73 70 65 |Skippy B|lair spe|
|00000720| 63 69 61 6c 20 63 6f 6e | 63 65 70 74 2c 0d 09 09 |cial con|cept,...|
|00000730| 09 09 09 09 6b 65 70 74 | 20 66 6f 72 20 6f 62 76 |....kept| for obv|
|00000740| 69 6f 75 73 20 61 65 73 | 74 68 65 74 69 63 20 72 |ious aes|thetic r|
|00000750| 65 61 73 6f 6e 73 2e 0d | 09 09 09 09 09 09 0d 09 |easons..|........|
|00000760| 09 09 09 09 09 59 6f 75 | 20 63 61 6e 20 62 75 69 |.....You| can bui|
|00000770| 6c 64 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 77 |ld the p|rogram w|
|00000780| 69 74 68 20 74 68 69 73 | 20 6a 75 6e 6b 3a 0d 70 |ith this| junk:.p|
|00000790| 61 73 63 61 6c 20 53 69 | 6c 6c 79 42 61 6c 6c 73 |ascal Si|llyBalls|
|000007a0| 2e 70 0d 4c 69 6e 6b 20 | 53 69 6c 6c 79 42 61 6c |.p.Link |SillyBal|
|000007b0| 6c 73 2e 70 2e 6f 20 b6 | 0d 09 22 7b 4c 69 62 72 |ls.p.o .|.."{Libr|
|000007c0| 61 72 69 65 73 7d 22 49 | 6e 74 65 72 66 61 63 65 |aries}"I|nterface|
|000007d0| 2e 6f 20 b6 0d 09 22 7b | 4c 69 62 72 61 72 69 65 |.o ..."{|Librarie|
|000007e0| 73 7d 22 52 75 6e 74 69 | 6d 65 2e 6f 20 b6 0d 09 |s}"Runti|me.o ...|
|000007f0| 22 7b 50 4c 69 62 72 61 | 72 69 65 73 7d 22 50 61 |"{PLibra|ries}"Pa|
|00000800| 73 6c 69 62 2e 6f 20 b6 | 0d 09 2d 6f 20 53 69 6c |slib.o .|..-o Sil|
|00000810| 6c 79 42 61 6c 6c 73 0d | 53 69 6c 6c 79 42 61 6c |lyBalls.|SillyBal|
|00000820| 6c 73 0d 2a 29 0d 0d 7b | 20 57 68 65 72 65 20 64 |ls.*)..{| Where d|
|00000830| 6f 65 73 20 69 74 20 66 | 69 74 3a 0d 09 54 68 69 |oes it f|it:..Thi|
|00000840| 73 20 69 73 20 61 20 73 | 65 72 69 65 73 20 6f 66 |s is a s|eries of|
|00000850| 20 73 61 6d 70 6c 65 20 | 70 72 6f 67 72 61 6d 73 | sample |programs|
|00000860| 20 66 6f 72 20 74 68 6f | 73 65 20 64 6f 69 6e 67 | for tho|se doing|
|00000870| 20 64 65 76 65 6c 6f 70 | 6d 65 6e 74 0d 09 75 73 | develop|ment..us|
|00000880| 69 6e 67 20 43 6f 6c 6f | 72 20 51 75 69 63 6b 44 |ing Colo|r QuickD|
|00000890| 72 61 77 2e 20 20 53 69 | 6e 63 65 20 74 68 65 20 |raw. Si|nce the |
|000008a0| 77 68 6f 6c 65 20 63 6f | 6c 6f 72 20 70 72 6f 62 |whole co|lor prob|
|000008b0| 6c 65 6d 20 64 65 70 65 | 6e 64 73 0d 09 75 70 6f |lem depe|nds..upo|
|000008c0| 6e 20 74 68 65 20 65 78 | 61 63 74 20 65 66 66 65 |n the ex|act effe|
|000008d0| 63 74 20 64 65 73 69 72 | 65 64 2c 20 74 68 65 72 |ct desir|ed, ther|
|000008e0| 65 20 61 72 65 20 61 20 | 6e 75 6d 62 65 72 20 6f |e are a |number o|
|000008f0| 66 20 61 6e 73 77 65 72 | 73 0d 09 74 6f 20 68 6f |f answer|s..to ho|
|00000900| 77 20 74 6f 20 75 73 65 | 20 63 6f 6c 6f 72 73 2c |w to use| colors,|
|00000910| 20 66 72 6f 6d 20 74 68 | 65 20 73 69 6d 70 6c 65 | from th|e simple|
|00000920| 20 74 6f 20 74 68 65 20 | 72 61 64 69 63 61 6c 6c | to the |radicall|
|00000930| 79 20 63 6f 6d 70 6c 65 | 78 2e 0d 09 54 68 65 73 |y comple|x...Thes|
|00000940| 65 20 70 72 6f 67 72 61 | 6d 73 20 74 72 79 20 74 |e progra|ms try t|
|00000950| 6f 20 63 6f 76 65 72 20 | 74 68 65 20 67 61 6d 75 |o cover |the gamu|
|00000960| 74 2c 20 73 6f 20 79 6f | 75 20 73 68 6f 75 6c 64 |t, so yo|u should|
|00000970| 20 75 73 65 20 0d 09 77 | 68 69 63 68 20 65 76 65 | use ..w|hich eve|
|00000980| 72 20 73 65 65 6d 73 20 | 61 70 70 72 6f 70 72 69 |r seems |appropri|
|00000990| 61 74 65 2e 20 20 49 6e | 20 6d 6f 73 74 20 63 61 |ate. In| most ca|
|000009a0| 73 65 73 2c 20 75 73 65 | 20 74 68 65 20 73 69 6d |ses, use| the sim|
|000009b0| 70 6c 65 73 74 0d 09 6f | 6e 65 20 74 68 61 74 20 |plest..o|ne that |
|000009c0| 77 69 6c 6c 20 67 69 76 | 65 20 74 68 65 20 64 65 |will giv|e the de|
|000009d0| 73 69 72 65 64 20 72 65 | 73 75 6c 74 73 2e 20 20 |sired re|sults. |
|000009e0| 54 68 65 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |The comp|atibilit|
|000009f0| 79 0d 09 72 61 74 69 6e | 67 20 69 73 20 66 72 6f |y..ratin|g is fro|
|00000a00| 6d 20 30 2e 2e 39 20 77 | 68 65 72 65 20 6c 6f 77 |m 0..9 w|here low|
|00000a10| 20 69 73 20 62 65 74 74 | 65 72 2e 20 20 54 68 65 | is bett|er. The|
|00000a20| 20 6d 6f 72 65 20 6b 6e | 6f 77 6e 20 72 69 73 6b | more kn|own risk|
|00000a30| 73 20 0d 09 74 68 65 72 | 65 20 61 72 65 20 74 68 |s ..ther|e are th|
|00000a40| 65 20 68 69 67 68 65 72 | 20 74 68 65 20 72 61 74 |e higher| the rat|
|00000a50| 69 6e 67 2e 0d 09 0d 09 | 0d 09 54 68 65 20 70 72 |ing.....|..The pr|
|00000a60| 6f 67 72 61 6d 73 20 28 | 69 6e 20 6f 72 64 65 72 |ograms (|in order|
|00000a70| 20 6f 66 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 | of comp|atibilit|
|00000a80| 79 29 3a 0d 09 0d 09 09 | 53 69 6c 6c 79 42 61 6c |y):.....|SillyBal|
|00000a90| 6c 73 3a 09 28 2a 2a 2a | 29 0d 09 09 09 54 68 69 |ls:.(***|)....Thi|
|00000aa0| 73 20 69 73 20 74 68 65 | 20 73 69 6d 70 6c 65 73 |s is the| simples|
|00000ab0| 74 20 75 73 65 20 6f 66 | 20 43 6f 6c 6f 72 20 51 |t use of| Color Q|
|00000ac0| 75 69 63 6b 44 72 61 77 | 2c 20 61 6e 64 20 64 6f |uickDraw|, and do|
|00000ad0| 65 73 0d 09 09 09 6e 6f | 74 20 75 73 65 20 74 68 |es....no|t use th|
|00000ae0| 65 20 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |e Palett|e Manage|
|00000af0| 72 2e 20 20 49 74 20 64 | 72 61 77 73 20 72 61 6e |r. It d|raws ran|
|00000b00| 64 6f 6d 6c 79 20 63 6f | 6c 6f 72 65 64 0d 09 09 |domly co|lored...|
|00000b10| 09 62 61 6c 6c 73 20 69 | 6e 20 61 20 63 6f 6c 6f |.balls i|n a colo|
|00000b20| 72 20 77 69 6e 64 6f 77 | 2e 20 20 54 68 69 73 20 |r window|. This |
|00000b30| 69 73 20 69 6e 74 65 6e | 64 65 64 20 74 6f 20 67 |is inten|ded to g|
|00000b40| 69 76 65 20 79 6f 75 0d | 09 09 09 74 68 65 20 61 |ive you.|...the a|
|00000b50| 62 73 6f 6c 75 74 65 20 | 6d 69 6e 69 6d 75 6d 20 |bsolute |minimum |
|00000b60| 72 65 71 75 69 72 65 64 | 20 74 6f 20 67 65 74 20 |required| to get |
|00000b70| 63 6f 6c 6f 72 20 6f 6e | 20 74 68 65 20 73 63 72 |color on| the scr|
|00000b80| 65 65 6e 2e 0d 09 09 09 | 57 72 69 74 74 65 6e 20 |een.....|Written |
|00000b90| 69 6e 20 73 74 72 61 69 | 67 68 74 20 50 61 73 63 |in strai|ght Pasc|
|00000ba0| 61 6c 20 63 6f 64 65 2e | 0d 09 09 09 43 6f 6d 70 |al code.|....Comp|
|00000bb0| 61 74 69 62 69 6c 69 74 | 79 20 72 61 74 69 6e 67 |atibilit|y rating|
|00000bc0| 20 3d 20 30 2c 20 6e 6f | 20 6b 6e 6f 77 6e 20 72 | = 0, no| known r|
|00000bd0| 69 73 6b 73 2e 0d 09 09 | 0d 09 09 46 72 61 63 41 |isks....|...FracA|
|00000be0| 70 70 50 61 6c 65 74 74 | 65 3a 0d 09 09 09 54 68 |ppPalett|e:....Th|
|00000bf0| 69 73 20 69 73 20 61 20 | 76 65 72 73 69 6f 6e 20 |is is a |version |
|00000c00| 6f 66 20 46 72 61 63 41 | 70 70 20 74 68 61 74 20 |of FracA|pp that |
|00000c10| 75 73 65 73 20 6f 6e 6c | 79 20 74 68 65 20 50 61 |uses onl|y the Pa|
|00000c20| 6c 65 74 74 65 0d 09 09 | 09 4d 61 6e 61 67 65 72 |lette...|.Manager|
|00000c30| 2e 20 20 49 74 20 64 6f | 65 73 20 6e 6f 74 20 73 |. It do|es not s|
|00000c40| 75 70 70 6f 72 74 20 63 | 6f 6c 6f 72 20 74 61 62 |upport c|olor tab|
|00000c50| 6c 65 20 61 6e 69 6d 61 | 74 69 6f 6e 0d 09 09 09 |le anima|tion....|
|00000c60| 73 69 6e 63 65 20 74 68 | 61 74 20 70 61 72 74 20 |since th|at part |
|00000c70| 6f 66 20 74 68 65 20 50 | 61 6c 65 74 74 65 20 4d |of the P|alette M|
|00000c80| 61 6e 61 67 65 72 20 69 | 73 20 6e 6f 74 20 73 75 |anager i|s not su|
|00000c90| 66 66 69 63 69 65 6e 74 | 2e 0d 09 09 09 54 68 65 |fficient|.....The|
|00000ca0| 20 70 72 6f 67 72 61 6d | 20 64 65 6d 6f 6e 73 74 | program| demonst|
|00000cb0| 72 61 74 65 73 20 61 20 | 66 75 6c 6c 20 63 6f 6c |rates a |full col|
|00000cc0| 6f 72 20 70 61 6c 65 74 | 74 65 20 74 68 61 74 20 |or palet|te that |
|00000cd0| 69 73 0d 09 09 09 75 73 | 65 64 20 74 6f 20 64 69 |is....us|ed to di|
|00000ce0| 73 70 6c 61 79 20 74 68 | 65 20 4d 61 6e 64 65 6c |splay th|e Mandel|
|00000cf0| 62 72 6f 74 20 73 65 74 | 2e 20 20 49 74 20 75 73 |brot set|. It us|
|00000d00| 65 73 20 61 6e 20 6f 66 | 66 73 63 72 65 65 6e 0d |es an of|fscreen.|
|00000d10| 09 09 09 67 44 65 76 69 | 63 65 20 77 2f 20 50 6f |...gDevi|ce w/ Po|
|00000d20| 72 74 20 74 6f 20 68 61 | 6e 64 6c 65 20 74 68 65 |rt to ha|ndle the|
|00000d30| 20 64 61 74 61 2c 20 75 | 73 69 6e 67 20 43 6f 70 | data, u|sing Cop|
|00000d40| 79 42 69 74 73 20 74 6f | 0d 09 09 09 64 72 61 77 |yBits to|....draw|
|00000d50| 20 74 6f 20 74 68 65 20 | 77 69 6e 64 6f 77 2e 20 | to the |window. |
|00000d60| 20 54 68 65 20 50 61 6c | 65 74 74 65 20 69 73 20 | The Pal|ette is |
|00000d70| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 0d 09 |automati|cally ..|
|00000d80| 09 09 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |..associ|ated wit|
|00000d90| 68 20 65 61 63 68 20 77 | 69 6e 64 6f 77 2e 20 20 |h each w|indow. |
|00000da0| 54 68 65 20 50 49 43 54 | 20 66 69 6c 65 73 20 61 |The PICT| files a|
|00000db0| 72 65 20 72 65 61 64 0d | 09 09 09 61 6e 64 20 77 |re read.|...and w|
|00000dc0| 72 69 74 74 65 6e 20 75 | 73 69 6e 67 20 74 68 65 |ritten u|sing the|
|00000dd0| 20 62 6f 74 74 6c 65 6e | 65 63 6b 73 2c 20 74 6f | bottlen|ecks, to|
|00000de0| 20 73 61 76 65 20 6f 6e | 20 6d 65 6d 6f 72 79 0d | save on| memory.|
|00000df0| 09 09 09 75 73 65 61 67 | 65 2e 0d 09 09 09 57 72 |...useag|e.....Wr|
|00000e00| 69 74 74 65 6e 20 69 6e | 20 4d 61 63 41 70 70 20 |itten in| MacApp |
|00000e10| 4f 62 6a 65 63 74 20 50 | 61 73 63 61 6c 20 63 6f |Object P|ascal co|
|00000e20| 64 65 2e 0d 09 09 09 43 | 6f 6d 70 61 74 69 62 69 |de.....C|ompatibi|
|00000e30| 6c 69 74 79 20 72 61 74 | 69 6e 67 20 3d 20 30 2c |lity rat|ing = 0,|
|00000e40| 20 6e 6f 20 6b 6e 6f 77 | 6e 20 72 69 73 6b 73 2e | no know|n risks.|
|00000e50| 0d 09 09 0d 09 09 54 75 | 62 65 54 65 73 74 3a 0d |......Tu|beTest:.|
|00000e60| 09 09 09 54 68 69 73 20 | 69 73 20 61 20 73 6d 61 |...This |is a sma|
|00000e70| 6c 6c 20 64 65 6d 6f 20 | 70 72 6f 67 72 61 6d 20 |ll demo |program |
|00000e80| 74 68 61 74 20 64 65 6d | 6f 6e 73 74 72 61 74 65 |that dem|onstrate|
|00000e90| 73 20 75 73 69 6e 67 20 | 74 68 65 0d 09 09 09 50 |s using |the....P|
|00000ea0| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 20 66 |alette M|anager f|
|00000eb0| 6f 72 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 20 61 |or color| table a|
|00000ec0| 6e 69 6d 61 74 69 6f 6e | 2e 20 20 49 74 20 75 73 |nimation|. It us|
|00000ed0| 65 73 20 61 20 0d 09 09 | 09 63 6f 6c 6f 72 20 70 |es a ...|.color p|
|00000ee0| 61 6c 65 74 74 65 20 77 | 69 74 68 20 61 6e 69 6d |alette w|ith anim|
|00000ef0| 61 74 69 6e 67 20 65 6e | 74 72 69 65 73 2c 20 61 |ating en|tries, a|
|00000f00| 6e 64 20 64 72 61 77 73 | 20 75 73 69 6e 67 20 74 |nd draws| using t|
|00000f10| 68 65 0d 09 09 09 50 61 | 6c 65 74 74 65 20 4d 61 |he....Pa|lette Ma|
|00000f20| 6e 61 67 65 72 2e 20 20 | 54 68 65 72 65 20 61 72 |nager. |There ar|
|00000f30| 65 20 74 77 6f 20 63 69 | 72 63 6c 65 73 20 6f 66 |e two ci|rcles of|
|00000f40| 20 61 6e 69 6d 61 74 69 | 6e 67 20 63 6f 6c 6f 72 | animati|ng color|
|00000f50| 73 0d 09 09 09 77 68 69 | 63 68 20 67 69 76 65 73 |s....whi|ch gives|
|00000f60| 20 61 20 66 6c 6f 77 69 | 6e 67 20 74 75 62 65 20 | a flowi|ng tube |
|00000f70| 65 66 66 65 63 74 2e 20 | 20 54 68 69 73 20 69 73 |effect. | This is|
|00000f80| 20 61 20 76 61 6c 69 64 | 20 63 61 73 65 0d 09 09 | a valid| case...|
|00000f90| 09 66 6f 72 20 75 73 69 | 6e 67 20 74 68 65 20 61 |.for usi|ng the a|
|00000fa0| 6e 69 6d 61 74 69 6e 67 | 20 63 6f 6c 6f 72 73 20 |nimating| colors |
|00000fb0| 61 73 70 65 63 74 20 6f | 66 20 74 68 65 20 50 61 |aspect o|f the Pa|
|00000fc0| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 2c 0d 09 |lette Ma|nager,..|
|00000fd0| 09 09 73 69 6e 63 65 20 | 74 68 65 20 69 6d 61 67 |..since |the imag|
|00000fe0| 65 20 69 73 20 62 65 69 | 6e 67 20 64 72 61 77 6e |e is bei|ng drawn|
|00000ff0| 20 64 69 72 65 63 74 6c | 79 2e 0d 09 09 09 57 72 | directl|y.....Wr|
|00001000| 69 74 74 65 6e 20 69 6e | 20 73 74 72 61 69 67 68 |itten in| straigh|
|00001010| 74 20 50 61 73 63 61 6c | 20 63 6f 64 65 2e 0d 09 |t Pascal| code...|
|00001020| 09 09 43 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |..Compat|ibility |
|00001030| 72 61 74 69 6e 67 20 3d | 20 30 2c 20 6e 6f 20 6b |rating =| 0, no k|
|00001040| 6e 6f 77 6e 20 72 69 73 | 6b 73 2e 0d 09 09 0d 09 |nown ris|ks......|
|00001050| 09 46 72 61 63 41 70 70 | 3a 0d 09 09 09 54 68 69 |.FracApp|:....Thi|
|00001060| 73 20 69 73 20 74 68 65 | 20 d4 63 6f 6d 6d 65 72 |s is the| .commer|
|00001070| 63 69 61 6c 20 71 75 61 | 6c 69 74 79 d5 20 76 65 |cial qua|lity. ve|
|00001080| 72 73 69 6f 6e 20 6f 66 | 20 46 72 61 63 41 70 70 |rsion of| FracApp|
|00001090| 2e 20 20 54 68 69 73 0d | 09 09 09 76 65 72 73 69 |. This.|...versi|
|000010a0| 6f 6e 20 73 75 70 70 6f | 72 74 73 20 63 6f 6c 6f |on suppo|rts colo|
|000010b0| 72 20 74 61 62 6c 65 20 | 61 6e 69 6d 61 74 69 6f |r table |animatio|
|000010c0| 6e 2c 20 75 73 69 6e 67 | 20 61 6e 20 6f 66 66 73 |n, using| an offs|
|000010d0| 63 72 65 65 6e 0d 09 09 | 09 67 44 65 76 69 63 65 |creen...|.gDevice|
|000010e0| 20 77 2f 20 50 6f 72 74 | 2c 20 61 6e 64 20 68 61 | w/ Port|, and ha|
|000010f0| 6e 64 6c 65 73 20 6d 75 | 6c 74 69 70 6c 65 20 64 |ndles mu|ltiple d|
|00001100| 6f 63 75 6d 65 6e 74 73 | 2e 20 20 54 68 65 0d 09 |ocuments|. The..|
|00001110| 09 09 43 6f 70 79 42 69 | 74 73 20 75 70 64 61 74 |..CopyBi|ts updat|
|00001120| 65 73 20 74 6f 20 74 68 | 65 20 73 63 72 65 65 6e |es to th|e screen|
|00001130| 20 61 72 65 20 61 73 20 | 66 61 73 74 20 61 73 20 | are as |fast as |
|00001140| 70 6f 73 73 69 62 6c 65 | 2e 20 20 54 68 65 0d 09 |possible|. The..|
|00001150| 09 09 70 72 6f 67 72 61 | 6d 20 64 6f 65 73 20 6e |..progra|m does n|
|00001160| 6f 74 20 75 73 65 20 74 | 68 65 20 50 61 6c 65 74 |ot use t|he Palet|
|00001170| 74 65 20 4d 61 6e 61 67 | 65 72 2c 20 65 78 63 65 |te Manag|er, exce|
|00001180| 70 74 20 74 6f 0d 09 09 | 09 70 72 6f 76 69 64 65 |pt to...|.provide|
|00001190| 20 66 6f 72 20 74 68 65 | 20 73 79 73 74 65 6d 20 | for the| system |
|000011a0| 70 61 6c 65 74 74 65 2c | 20 6f 72 20 63 6f 6c 6f |palette,| or colo|
|000011b0| 72 20 6d 6f 64 65 73 20 | 77 69 74 68 20 6c 65 73 |r modes |with les|
|000011c0| 73 20 74 68 61 6e 0d 09 | 09 09 32 35 35 20 63 6f |s than..|..255 co|
|000011d0| 6c 6f 72 73 2e 20 20 46 | 6f 72 20 63 6f 6c 6f 72 |lors. F|or color|
|000011e0| 20 74 61 62 6c 65 20 61 | 6e 69 6d 61 74 69 6f 6e | table a|nimation|
|000011f0| 20 75 73 69 6e 67 20 61 | 6e 20 6f 66 66 73 63 72 | using a|n offscr|
|00001200| 65 65 6e 0d 09 09 09 67 | 44 65 76 69 63 65 20 77 |een....g|Device w|
|00001210| 2f 20 50 6f 72 74 2c 20 | 69 74 20 75 73 65 73 20 |/ Port, |it uses |
|00001220| 74 68 65 20 43 6f 6c 6f | 72 20 4d 61 6e 61 67 65 |the Colo|r Manage|
|00001230| 72 20 61 6e 64 20 68 61 | 6e 64 6c 65 73 20 74 68 |r and ha|ndles th|
|00001240| 65 0d 09 09 09 63 6f 6c | 6f 72 73 20 69 74 73 65 |e....col|ors itse|
|00001250| 6c 66 2e 20 20 53 74 72 | 69 63 74 20 63 6f 6d 70 |lf. Str|ict comp|
|00001260| 61 74 69 62 69 6c 69 74 | 79 20 77 61 73 20 72 65 |atibilit|y was re|
|00001270| 6c 61 78 65 64 20 74 6f | 20 61 6c 6c 6f 77 20 66 |laxed to| allow f|
|00001280| 6f 72 0d 09 09 09 61 20 | 68 69 67 68 65 72 20 70 |or....a |higher p|
|00001290| 65 72 66 6f 72 6d 61 6e | 63 65 20 70 72 6f 67 72 |erforman|ce progr|
|000012a0| 61 6d 2e 20 20 54 68 69 | 73 20 69 73 20 74 68 65 |am. Thi|s is the|
|000012b0| 20 6d 6f 73 74 20 d4 72 | 65 61 6c d5 20 6f 66 20 | most .r|eal. of |
|000012c0| 74 68 65 0d 09 09 09 73 | 61 6d 70 6c 65 20 70 72 |the....s|ample pr|
|000012d0| 6f 67 72 61 6d 73 2e 0d | 09 09 09 57 72 69 74 74 |ograms..|...Writt|
|000012e0| 65 6e 20 69 6e 20 4d 61 | 63 41 70 70 20 4f 62 6a |en in Ma|cApp Obj|
|000012f0| 65 63 74 20 50 61 73 63 | 61 6c 20 63 6f 64 65 2e |ect Pasc|al code.|
|00001300| 0d 09 09 09 43 6f 6d 70 | 61 74 69 62 69 6c 69 74 |....Comp|atibilit|
|00001310| 79 20 72 61 74 69 6e 67 | 20 3d 20 32 2e 20 20 28 |y rating| = 2. (|
|00001320| 6e 6f 74 68 69 6e 67 20 | 77 69 6c 6c 20 62 72 65 |nothing |will bre|
|00001330| 61 6b 2c 20 62 75 74 20 | 69 74 20 6d 61 79 20 6e |ak, but |it may n|
|00001340| 6f 74 0d 09 09 09 61 6c | 77 61 79 73 20 6c 6f 6f |ot....al|ways loo|
|00001350| 6b 20 63 6f 72 72 65 63 | 74 2e 29 0d 09 09 0d 09 |k correc|t.).....|
|00001360| 09 46 72 61 63 41 70 70 | 33 30 30 3a 0d 09 09 09 |.FracApp|300:....|
|00001370| 54 68 69 73 20 64 6f 65 | 73 6e 27 74 20 73 75 70 |This doe|sn't sup|
|00001380| 70 6f 72 74 20 63 6f 6c | 6f 72 73 2c 20 62 75 74 |port col|ors, but|
|00001390| 20 64 65 6d 6f 6e 73 74 | 72 61 74 65 73 20 68 6f | demonst|rates ho|
|000013a0| 77 20 74 6f 20 63 72 65 | 61 74 65 20 61 6e 64 0d |w to cre|ate and.|
|000013b0| 09 09 09 75 73 65 20 61 | 20 33 30 30 20 64 70 69 |...use a| 300 dpi|
|000013c0| 20 62 69 74 6d 61 70 20 | 77 2f 20 50 6f 72 74 2e | bitmap |w/ Port.|
|000013d0| 20 20 54 68 65 20 62 69 | 74 6d 61 70 20 69 73 20 | The bi|tmap is |
|000013e0| 70 72 69 6e 74 65 64 20 | 61 74 20 66 75 6c 6c 0d |printed |at full.|
|000013f0| 09 09 09 72 65 73 6f 6c | 75 74 69 6f 6e 20 6f 6e |...resol|ution on|
|00001400| 20 4c 61 73 65 72 57 72 | 69 74 65 72 73 2c 20 61 | LaserWr|iters, a|
|00001410| 6e 64 20 63 6c 69 70 70 | 65 64 20 6f 6e 20 6f 74 |nd clipp|ed on ot|
|00001420| 68 65 72 20 70 72 69 6e | 74 65 72 73 20 28 62 75 |her prin|ters (bu|
|00001430| 74 0d 09 09 09 74 68 65 | 79 20 73 74 69 6c 6c 20 |t....the|y still |
|00001440| 70 72 69 6e 74 29 2e 20 | 20 49 74 20 64 65 6d 6f |print). | It demo|
|00001450| 6e 73 74 72 61 74 65 73 | 20 68 6f 77 20 74 6f 20 |nstrates| how to |
|00001460| 75 73 65 20 61 20 68 69 | 67 68 20 72 65 73 6f 6c |use a hi|gh resol|
|00001470| 75 74 69 6f 6e 0d 09 09 | 09 69 6d 61 67 65 20 61 |ution...|.image a|
|00001480| 73 20 61 20 50 49 43 54 | 20 66 69 6c 65 2c 20 61 |s a PICT| file, a|
|00001490| 6e 64 20 68 6f 77 20 74 | 6f 20 70 72 69 6e 74 20 |nd how t|o print |
|000014a0| 74 68 65 6d 20 6f 75 74 | 2e 0d 09 09 09 57 72 69 |them out|.....Wri|
|000014b0| 74 74 65 6e 20 69 6e 20 | 4d 61 63 41 70 70 20 4f |tten in |MacApp O|
|000014c0| 62 6a 65 63 74 20 50 61 | 73 63 61 6c 20 63 6f 64 |bject Pa|scal cod|
|000014d0| 65 2e 0d 09 09 09 43 6f | 6d 70 61 74 69 62 69 6c |e.....Co|mpatibil|
|000014e0| 69 74 79 20 72 61 74 69 | 6e 67 20 3d 20 31 2e 20 |ity rati|ng = 1. |
|000014f0| 20 28 54 68 65 20 75 73 | 65 20 6f 66 20 50 72 47 | (The us|e of PrG|
|00001500| 65 6e 65 72 61 6c 20 69 | 73 20 73 6c 69 67 68 74 |eneral i|s slight|
|00001510| 6c 79 20 0d 09 09 09 6f | 75 74 20 6f 66 20 74 68 |ly ....o|ut of th|
|00001520| 65 20 6f 72 64 69 6e 61 | 72 79 2c 20 61 6c 74 68 |e ordina|ry, alth|
|00001530| 6f 75 67 68 20 73 75 70 | 70 6f 72 74 65 64 2e 29 |ough sup|ported.)|
|00001540| 0d 7d 0d 0d 55 53 45 53 | 09 4d 65 6d 54 79 70 65 |.}..USES|.MemType|
|00001550| 73 2c 20 51 75 69 63 6b | 44 72 61 77 2c 20 4f 53 |s, Quick|Draw, OS|
|00001560| 49 6e 74 66 2c 20 54 6f | 6f 6c 49 6e 74 66 3b 0d |Intf, To|olIntf;.|
|00001570| 0d 43 4f 4e 53 54 0d 09 | 42 61 6c 6c 57 69 64 74 |.CONST..|BallWidt|
|00001580| 68 09 3d 20 32 30 3b 0d | 09 42 61 6c 6c 48 65 69 |h.= 20;.|.BallHei|
|00001590| 67 68 74 09 3d 20 32 30 | 3b 0d 09 42 6f 62 53 69 |ght.= 20|;..BobSi|
|000015a0| 7a 65 09 09 3d 20 38 3b | 09 09 7b 20 53 69 7a 65 |ze..= 8;|..{ Size|
|000015b0| 20 6f 66 20 74 65 78 74 | 20 69 6e 20 65 61 63 68 | of text| in each|
|000015c0| 20 62 61 6c 6c 2e 20 7d | 0d 0d 56 41 52 0d 09 77 | ball. }|..VAR..w|
|000015d0| 69 6e 64 52 65 63 74 09 | 3a 20 52 65 63 74 3b 0d |indRect.|: Rect;.|
|000015e0| 09 0d 09 0d 7b 20 49 6e | 69 74 69 61 6c 69 7a 65 |....{ In|itialize|
|000015f0| 20 65 76 65 72 79 74 68 | 69 6e 67 20 66 6f 72 20 | everyth|ing for |
|00001600| 74 68 65 20 70 72 6f 67 | 72 61 6d 2c 20 6d 61 6b |the prog|ram, mak|
|00001610| 65 20 73 75 72 65 20 77 | 65 20 63 61 6e 20 72 75 |e sure w|e can ru|
|00001620| 6e 2e 20 7d 0d 0d 50 72 | 6f 63 65 64 75 72 65 20 |n. }..Pr|ocedure |
|00001630| 49 6e 69 74 69 61 6c 69 | 7a 65 3b 0d 0d 56 41 52 |Initiali|ze;..VAR|
|00001640| 0d 09 6d 61 69 6e 50 74 | 72 09 09 3a 20 57 69 6e |..mainPt|r..: Win|
|00001650| 64 6f 77 50 74 72 3b 0d | 09 65 72 72 6f 72 09 09 |dowPtr;.|.error..|
|00001660| 3a 20 4f 53 45 72 72 3b | 0d 09 74 68 65 57 6f 72 |: OSErr;|..theWor|
|00001670| 6c 64 09 3a 20 53 79 73 | 45 6e 76 52 65 63 3b 0d |ld.: Sys|EnvRec;.|
|00001680| 09 0d 42 45 47 49 4e 0d | 09 7b 20 54 65 73 74 20 |..BEGIN.|.{ Test |
|00001690| 74 68 65 20 63 6f 6d 70 | 75 74 65 72 20 74 6f 20 |the comp|uter to |
|000016a0| 62 65 20 73 75 72 65 20 | 77 65 20 63 61 6e 20 64 |be sure |we can d|
|000016b0| 6f 20 63 6f 6c 6f 72 2e | 20 20 49 66 20 6e 6f 74 |o color.| If not|
|000016c0| 20 77 65 20 77 6f 75 6c | 64 20 63 72 61 73 68 2c | we woul|d crash,|
|000016d0| 20 77 68 69 63 68 0d 09 | 77 6f 75 6c 64 20 62 65 | which..|would be|
|000016e0| 20 62 61 64 2e 20 20 49 | 66 20 77 65 20 63 61 6e | bad. I|f we can|
|000016f0| d5 74 20 72 75 6e 2c 20 | 6a 75 73 74 20 62 65 65 |.t run, |just bee|
|00001700| 70 20 61 6e 64 20 65 78 | 69 74 2e 20 7d 0d 09 65 |p and ex|it. }..e|
|00001710| 72 72 6f 72 20 3a 3d 20 | 53 79 73 45 6e 76 69 72 |rror := |SysEnvir|
|00001720| 6f 6e 73 28 31 2c 20 74 | 68 65 57 6f 72 6c 64 29 |ons(1, t|heWorld)|
|00001730| 3b 0d 09 49 46 20 4e 4f | 54 20 74 68 65 57 6f 72 |;..IF NO|T theWor|
|00001740| 6c 64 2e 68 61 73 43 6f | 6c 6f 72 51 44 20 54 48 |ld.hasCo|lorQD TH|
|00001750| 45 4e 20 42 45 47 49 4e | 0d 09 09 53 79 73 42 65 |EN BEGIN|...SysBe|
|00001760| 65 70 20 28 35 30 29 3b | 0d 09 09 45 78 69 74 54 |ep (50);|...ExitT|
|00001770| 6f 53 68 65 6c 6c 3b 09 | 09 09 09 09 09 7b 20 49 |oShell;.|.....{ I|
|00001780| 66 20 6e 6f 20 63 6f 6c | 6f 72 20 51 44 2c 20 77 |f no col|or QD, w|
|00001790| 65 20 6d 75 73 74 20 6c | 65 61 76 65 2e 20 7d 0d |e must l|eave. }.|
|000017a0| 09 45 4e 44 3b 0d 09 0d | 09 7b 20 49 6e 69 74 69 |.END;...|.{ Initi|
|000017b0| 61 6c 69 7a 65 20 61 6c | 6c 20 74 68 65 20 6e 65 |alize al|l the ne|
|000017c0| 65 64 65 64 20 6d 61 6e | 61 67 65 72 73 2e 20 7d |eded man|agers. }|
|000017d0| 0d 09 49 6e 69 74 47 72 | 61 66 28 40 74 68 65 50 |..InitGr|af(@theP|
|000017e0| 6f 72 74 29 3b 0d 09 49 | 6e 69 74 46 6f 6e 74 73 |ort);..I|nitFonts|
|000017f0| 3b 0d 09 49 6e 69 74 57 | 69 6e 64 6f 77 73 3b 0d |;..InitW|indows;.|
|00001800| 09 49 6e 69 74 4d 65 6e | 75 73 3b 0d 09 54 45 49 |.InitMen|us;..TEI|
|00001810| 6e 69 74 3b 0d 09 49 6e | 69 74 44 69 61 6c 6f 67 |nit;..In|itDialog|
|00001820| 73 28 4e 49 4c 29 3b 0d | 09 49 6e 69 74 43 75 72 |s(NIL);.|.InitCur|
|00001830| 73 6f 72 3b 0d 0d 09 7b | 20 54 6f 20 6d 61 6b 65 |sor;...{| To make|
|00001840| 20 74 68 65 20 52 61 6e | 64 6f 6d 20 73 65 71 75 | the Ran|dom sequ|
|00001850| 65 6e 63 65 73 20 74 72 | 75 6c 79 20 72 61 6e 64 |ences tr|uly rand|
|00001860| 6f 6d 2c 20 77 65 20 6e | 65 65 64 20 74 6f 20 6d |om, we n|eed to m|
|00001870| 61 6b 65 20 74 68 65 20 | 73 65 65 64 20 73 74 61 |ake the |seed sta|
|00001880| 72 74 0d 09 61 74 20 61 | 20 64 69 66 66 65 72 65 |rt..at a| differe|
|00001890| 6e 74 20 6e 75 6d 62 65 | 72 2e 20 20 41 6e 20 65 |nt numbe|r. An e|
|000018a0| 61 73 79 20 77 61 79 20 | 74 6f 20 64 6f 20 74 68 |asy way |to do th|
|000018b0| 69 73 20 69 73 20 74 6f | 20 70 75 74 20 74 68 65 |is is to| put the|
|000018c0| 20 63 75 72 72 65 6e 74 | 20 74 69 6d 65 0d 09 61 | current| time..a|
|000018d0| 6e 64 20 64 61 74 65 20 | 69 6e 74 6f 20 74 68 65 |nd date |into the|
|000018e0| 20 73 65 65 64 2e 20 20 | 53 69 6e 63 65 20 69 74 | seed. |Since it|
|000018f0| 20 69 73 20 61 6c 77 61 | 79 73 20 69 6e 63 72 65 | is alwa|ys incre|
|00001900| 6d 65 6e 74 69 6e 67 20 | 74 68 65 20 73 74 61 72 |menting |the star|
|00001910| 74 69 6e 67 20 73 65 65 | 64 0d 09 77 69 6c 6c 20 |ting see|d..will |
|00001920| 61 6c 77 61 79 73 20 62 | 65 20 64 69 66 66 65 72 |always b|e differ|
|00001930| 65 6e 74 2e 20 20 44 6f | 6e d5 74 20 66 6f 72 20 |ent. Do|n.t for |
|00001940| 65 61 63 68 20 63 61 6c | 6c 20 6f 66 20 52 61 6e |each cal|l of Ran|
|00001950| 64 6f 6d 2c 20 6f 72 20 | 74 68 65 20 73 65 71 75 |dom, or |the sequ|
|00001960| 65 6e 63 65 0d 09 77 69 | 6c 6c 20 6e 6f 20 6c 6f |ence..wi|ll no lo|
|00001970| 6e 67 65 72 20 62 65 20 | 72 61 6e 64 6f 6d 2e 20 |nger be |random. |
|00001980| 20 4f 6e 6c 79 20 6e 65 | 65 64 65 64 20 6f 6e 63 | Only ne|eded onc|
|00001990| 65 2c 20 68 65 72 65 20 | 69 6e 20 74 68 65 20 69 |e, here |in the i|
|000019a0| 6e 69 74 2e 20 7d 0d 09 | 47 65 74 44 61 74 65 54 |nit. }..|GetDateT|
|000019b0| 69 6d 65 20 28 52 61 6e | 64 53 65 65 64 29 3b 0d |ime (Ran|dSeed);.|
|000019c0| 0d 09 7b 20 4d 61 6b 65 | 20 61 20 6e 65 77 20 77 |..{ Make| a new w|
|000019d0| 69 6e 64 6f 77 20 66 6f | 72 20 64 72 61 77 69 6e |indow fo|r drawin|
|000019e0| 67 20 69 6e 2c 20 61 6e | 64 20 69 74 20 6d 75 73 |g in, an|d it mus|
|000019f0| 74 20 62 65 20 61 20 63 | 6f 6c 6f 72 20 77 69 6e |t be a c|olor win|
|00001a00| 64 6f 77 2e 20 20 54 68 | 65 20 77 69 6e 64 6f 77 |dow. Th|e window|
|00001a10| 20 69 73 0d 09 66 75 6c | 6c 20 73 63 72 65 65 6e | is..ful|l screen|
|00001a20| 20 73 69 7a 65 2c 20 6d | 61 64 65 20 73 6d 61 6c | size, m|ade smal|
|00001a30| 6c 65 72 20 74 6f 20 6d | 61 6b 65 20 69 74 20 6d |ler to m|ake it m|
|00001a40| 6f 72 65 20 76 69 73 69 | 62 6c 65 2e 20 7d 0d 09 |ore visi|ble. }..|
|00001a50| 77 69 6e 64 52 65 63 74 | 20 3a 3d 20 73 63 72 65 |windRect| := scre|
|00001a60| 65 6e 42 69 74 73 2e 62 | 6f 75 6e 64 73 3b 0d 09 |enBits.b|ounds;..|
|00001a70| 49 6e 73 65 74 52 65 63 | 74 20 28 77 69 6e 64 52 |InsetRec|t (windR|
|00001a80| 65 63 74 2c 20 35 30 2c | 20 35 30 29 3b 0d 09 4d |ect, 50,| 50);..M|
|00001a90| 61 69 6e 50 74 72 20 3a | 3d 20 4e 65 77 43 57 69 |ainPtr :|= NewCWi|
|00001aa0| 6e 64 6f 77 28 4e 49 4c | 2c 20 77 69 6e 64 52 65 |ndow(NIL|, windRe|
|00001ab0| 63 74 2c 20 27 42 6f 33 | 62 20 4c 61 6e 64 27 2c |ct, 'Bo3|b Land',|
|00001ac0| 20 54 52 55 45 2c 20 64 | 6f 63 75 6d 65 6e 74 50 | TRUE, d|ocumentP|
|00001ad0| 72 6f 63 2c 20 0d 09 09 | 09 09 09 09 09 50 6f 69 |roc, ...|.....Poi|
|00001ae0| 6e 74 65 72 28 2d 31 29 | 2c 20 46 41 4c 53 45 2c |nter(-1)|, FALSE,|
|00001af0| 20 30 29 3b 0d 09 09 0d | 09 53 65 74 50 6f 72 74 | 0);....|.SetPort|
|00001b00| 28 4d 61 69 6e 50 74 72 | 29 3b 09 09 09 09 09 09 |(MainPtr|);......|
|00001b10| 7b 20 73 65 74 20 77 69 | 6e 64 6f 77 20 74 6f 20 |{ set wi|ndow to |
|00001b20| 63 75 72 72 65 6e 74 20 | 67 72 61 66 20 70 6f 72 |current |graf por|
|00001b30| 74 20 20 20 7d 0d 09 54 | 65 78 74 53 69 7a 65 28 |t }..T|extSize(|
|00001b40| 42 6f 62 53 69 7a 65 29 | 3b 09 09 09 09 09 09 7b |BobSize)|;......{|
|00001b50| 20 73 6d 61 6c 6c 65 72 | 20 66 6f 6e 74 20 66 6f | smaller| font fo|
|00001b60| 72 20 64 72 61 77 69 6e | 67 2e 20 7d 0d 45 4e 44 |r drawin|g. }.END|
|00001b70| 3b 09 7b 20 49 6e 69 74 | 69 61 6c 69 7a 65 20 7d |;.{ Init|ialize }|
|00001b80| 0d 0d 0d 7b 20 4e 65 77 | 42 61 6c 6c 3a 20 6d 61 |...{ New|Ball: ma|
|00001b90| 6b 65 20 61 6e 6f 74 68 | 65 72 20 62 61 6c 6c 20 |ke anoth|er ball |
|00001ba0| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 20 61 74 |in the w|indow at|
|00001bb0| 20 61 20 72 61 6e 64 6f | 6d 20 6c 6f 63 61 74 69 | a rando|m locati|
|00001bc0| 6f 6e 20 61 6e 64 20 63 | 6f 6c 6f 72 2e 20 7d 0d |on and c|olor. }.|
|00001bd0| 0d 50 72 6f 63 65 64 75 | 72 65 20 4e 65 77 42 61 |.Procedu|re NewBa|
|00001be0| 6c 6c 3b 0d 0d 56 41 52 | 0d 09 62 61 6c 6c 43 6f |ll;..VAR|..ballCo|
|00001bf0| 6c 6f 72 09 3a 20 52 47 | 42 43 6f 6c 6f 72 3b 0d |lor.: RG|BColor;.|
|00001c00| 09 62 61 6c 6c 52 65 63 | 74 09 3a 20 52 65 63 74 |.ballRec|t.: Rect|
|00001c10| 3b 0d 09 6e 65 77 4c 65 | 66 74 2c 0d 09 6e 65 77 |;..newLe|ft,..new|
|00001c20| 54 6f 70 09 09 3a 20 4c | 6f 6e 67 49 6e 74 3b 0d |Top..: L|ongInt;.|
|00001c30| 09 0d 42 45 47 49 4e 0d | 09 7b 20 4d 61 6b 65 20 |..BEGIN.|.{ Make |
|00001c40| 61 20 72 61 6e 64 6f 6d | 20 6e 65 77 20 63 6f 6c |a random| new col|
|00001c50| 6f 72 20 66 6f 72 20 74 | 68 65 20 62 61 6c 6c 2e |or for t|he ball.|
|00001c60| 20 7d 0d 09 57 49 54 48 | 20 62 61 6c 6c 43 6f 6c | }..WITH| ballCol|
|00001c70| 6f 72 09 09 44 4f 20 42 | 45 47 49 4e 0d 09 09 72 |or..DO B|EGIN...r|
|00001c80| 65 64 20 3a 3d 20 52 61 | 6e 64 6f 6d 3b 20 20 20 |ed := Ra|ndom; |
|00001c90| 67 72 65 65 6e 20 3a 3d | 20 52 61 6e 64 6f 6d 3b |green :=| Random;|
|00001ca0| 20 20 62 6c 75 65 20 3a | 3d 20 52 61 6e 64 6f 6d | blue :|= Random|
|00001cb0| 3b 0d 09 45 4e 44 3b 0d | 09 0d 09 7b 20 53 65 74 |;..END;.|...{ Set|
|00001cc0| 20 74 68 61 74 20 63 6f | 6c 6f 72 20 61 73 20 74 | that co|lor as t|
|00001cd0| 68 65 20 6e 65 77 20 63 | 6f 6c 6f 72 20 74 6f 20 |he new c|olor to |
|00001ce0| 75 73 65 20 69 6e 20 64 | 72 61 77 69 6e 67 2e 20 |use in d|rawing. |
|00001cf0| 7d 0d 09 52 47 42 46 6f | 72 65 43 6f 6c 6f 72 20 |}..RGBFo|reColor |
|00001d00| 28 62 61 6c 6c 43 6f 6c | 6f 72 29 3b 0d 0d 09 7b |(ballCol|or);...{|
|00001d10| 20 4d 61 6b 65 20 61 20 | 52 61 6e 64 6f 6d 20 6e | Make a |Random n|
|00001d20| 65 77 20 6c 6f 63 61 74 | 69 6f 6e 20 66 6f 72 20 |ew locat|ion for |
|00001d30| 74 68 65 20 62 61 6c 6c | 2c 20 74 68 61 74 20 69 |the ball|, that i|
|00001d40| 73 20 6e 6f 72 6d 61 6c | 69 7a 65 64 20 74 6f 20 |s normal|ized to |
|00001d50| 74 68 65 20 77 69 6e 64 | 6f 77 20 73 69 7a 65 2e |the wind|ow size.|
|00001d60| 20 20 0d 09 54 68 69 73 | 20 6d 61 6b 65 73 20 74 | ..This| makes t|
|00001d70| 68 65 20 49 6e 74 65 67 | 65 72 20 66 72 6f 6d 20 |he Integ|er from |
|00001d80| 52 61 6e 64 6f 6d 20 69 | 6e 74 6f 20 61 20 6e 75 |Random i|nto a nu|
|00001d90| 6d 62 65 72 20 74 68 61 | 74 20 69 73 20 30 2e 2e |mber tha|t is 0..|
|00001da0| 77 69 6e 64 52 65 63 74 | 2e 62 6f 74 74 6f 6d 0d |windRect|.bottom.|
|00001db0| 09 61 6e 64 20 30 2e 2e | 77 69 6e 64 52 65 63 74 |.and 0..|windRect|
|00001dc0| 2e 72 69 67 68 74 2e 20 | 20 54 68 65 79 20 61 72 |.right. | They ar|
|00001dd0| 65 20 6e 6f 72 6d 61 6c | 69 7a 65 64 20 73 6f 20 |e normal|ized so |
|00001de0| 74 68 61 74 20 77 65 20 | 64 6f 6e 27 74 20 73 70 |that we |don't sp|
|00001df0| 65 6e 64 20 6d 6f 73 74 | 20 6f 66 20 6f 75 72 0d |end most| of our.|
|00001e00| 09 74 69 6d 65 20 64 72 | 61 77 69 6e 67 20 69 6e |.time dr|awing in|
|00001e10| 20 70 6c 61 63 65 73 20 | 6f 75 74 73 69 64 65 20 | places |outside |
|00001e20| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 2e 20 7d |of the w|indow. }|
|00001e30| 0d 09 6e 65 77 54 6f 70 | 20 3a 3d 20 52 61 6e 64 |..newTop| := Rand|
|00001e40| 6f 6d 3b 09 6e 65 77 4c | 65 66 74 20 3a 3d 20 52 |om;.newL|eft := R|
|00001e50| 61 6e 64 6f 6d 3b 0d 09 | 6e 65 77 54 6f 70 20 3a |andom;..|newTop :|
|00001e60| 3d 20 28 28 6e 65 77 54 | 6f 70 2b 33 32 37 36 37 |= ((newT|op+32767|
|00001e70| 29 20 2a 20 77 69 6e 64 | 52 65 63 74 2e 62 6f 74 |) * wind|Rect.bot|
|00001e80| 74 6f 6d 29 20 44 49 56 | 20 36 35 35 33 36 3b 0d |tom) DIV| 65536;.|
|00001e90| 09 6e 65 77 4c 65 66 74 | 20 3a 3d 20 28 28 6e 65 |.newLeft| := ((ne|
|00001ea0| 77 4c 65 66 74 2b 33 32 | 37 36 37 29 20 2a 20 77 |wLeft+32|767) * w|
|00001eb0| 69 6e 64 52 65 63 74 2e | 72 69 67 68 74 29 20 44 |indRect.|right) D|
|00001ec0| 49 56 20 36 35 35 33 36 | 3b 0d 09 53 65 74 52 65 |IV 65536|;..SetRe|
|00001ed0| 63 74 28 62 61 6c 6c 52 | 65 63 74 2c 20 6e 65 77 |ct(ballR|ect, new|
|00001ee0| 4c 65 66 74 2c 20 6e 65 | 77 54 6f 70 2c 20 6e 65 |Left, ne|wTop, ne|
|00001ef0| 77 4c 65 66 74 2b 42 61 | 6c 6c 57 69 64 74 68 2c |wLeft+Ba|llWidth,|
|00001f00| 20 6e 65 77 54 6f 70 2b | 42 61 6c 6c 48 65 69 67 | newTop+|BallHeig|
|00001f10| 68 74 29 3b 0d 09 0d 09 | 7b 20 4d 6f 76 65 20 70 |ht);....|{ Move p|
|00001f20| 65 6e 20 74 6f 20 74 68 | 65 20 6e 65 77 20 6c 6f |en to th|e new lo|
|00001f30| 63 61 74 69 6f 6e 2c 20 | 61 6e 64 20 70 61 69 6e |cation, |and pain|
|00001f40| 74 20 74 68 65 20 63 6f | 6c 6f 72 65 64 20 62 61 |t the co|lored ba|
|00001f50| 6c 6c 2e 20 7d 0d 09 4d | 6f 76 65 54 6f 28 6e 65 |ll. }..M|oveTo(ne|
|00001f60| 77 4c 65 66 74 2c 20 6e | 65 77 54 6f 70 29 3b 0d |wLeft, n|ewTop);.|
|00001f70| 09 50 61 69 6e 74 4f 76 | 61 6c 20 28 62 61 6c 6c |.PaintOv|al (ball|
|00001f80| 52 65 63 74 29 3b 0d 09 | 0d 09 7b 20 4d 6f 76 65 |Rect);..|..{ Move|
|00001f90| 20 74 68 65 20 70 65 6e | 20 74 6f 20 74 68 65 20 | the pen| to the |
|00001fa0| 6d 69 64 64 6c 65 20 6f | 66 20 74 68 65 20 6e 65 |middle o|f the ne|
|00001fb0| 77 20 62 61 6c 6c 20 70 | 6f 73 69 74 69 6f 6e 2c |w ball p|osition,|
|00001fc0| 20 66 6f 72 20 74 68 65 | 20 74 65 78 74 20 7d 0d | for the| text }.|
|00001fd0| 09 4d 6f 76 65 54 6f 28 | 62 61 6c 6c 52 65 63 74 |.MoveTo(|ballRect|
|00001fe0| 2e 4c 65 66 74 20 2b 20 | 42 61 6c 6c 57 69 64 74 |.Left + |BallWidt|
|00001ff0| 68 20 44 49 56 20 32 20 | 2d 20 42 6f 62 53 69 7a |h DIV 2 |- BobSiz|
|00002000| 65 2c 20 0d 09 09 09 62 | 61 6c 6c 52 65 63 74 2e |e, ....b|allRect.|
|00002010| 54 6f 70 20 2b 20 42 61 | 6c 6c 48 65 69 67 68 74 |Top + Ba|llHeight|
|00002020| 20 44 49 56 20 32 20 2b | 20 42 6f 62 53 69 7a 65 | DIV 2 +| BobSize|
|00002030| 20 44 49 56 20 32 20 2d | 31 29 3b 0d 09 0d 09 7b | DIV 2 -|1);....{|
|00002040| 20 49 6e 76 65 72 74 20 | 74 68 65 20 63 6f 6c 6f | Invert |the colo|
|00002050| 72 20 61 6e 64 20 64 72 | 61 77 20 74 68 65 20 74 |r and dr|aw the t|
|00002060| 65 78 74 20 74 68 65 72 | 65 2e 20 20 54 68 69 73 |ext ther|e. This|
|00002070| 20 77 6f 6e d5 74 20 6c | 6f 6f 6b 20 71 75 69 74 | won.t l|ook quit|
|00002080| 65 20 72 69 67 68 74 20 | 69 6e 20 31 20 62 69 74 |e right |in 1 bit|
|00002090| 0d 09 6d 6f 64 65 2c 20 | 73 69 6e 63 65 20 74 68 |..mode, |since th|
|000020a0| 65 20 66 6f 72 65 67 72 | 6f 75 6e 64 20 61 6e 64 |e foregr|ound and|
|000020b0| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 63 6f 6c 6f | backgro|und colo|
|000020c0| 72 73 20 77 69 6c 6c 20 | 62 65 20 74 68 65 20 73 |rs will |be the s|
|000020d0| 61 6d 65 2e 20 20 43 6f | 6c 6f 72 0d 09 51 75 69 |ame. Co|lor..Qui|
|000020e0| 63 6b 44 72 61 77 20 73 | 70 65 63 69 61 6c 20 63 |ckDraw s|pecial c|
|000020f0| 61 73 65 73 20 74 68 69 | 73 20 74 6f 20 6e 6f 74 |ases thi|s to not|
|00002100| 20 69 6e 76 65 72 74 20 | 74 68 65 20 63 6f 6c 6f | invert |the colo|
|00002110| 72 2c 20 74 6f 20 61 76 | 6f 69 64 20 69 6e 76 69 |r, to av|oid invi|
|00002120| 73 69 62 6c 65 0d 09 64 | 72 61 77 69 6e 67 2e 20 |sible..d|rawing. |
|00002130| 7d 0d 09 49 6e 76 65 72 | 74 43 6f 6c 6f 72 28 62 |}..Inver|tColor(b|
|00002140| 61 6c 6c 43 6f 6c 6f 72 | 29 3b 20 0d 09 52 47 42 |allColor|); ..RGB|
|00002150| 46 6f 72 65 43 6f 6c 6f | 72 28 62 61 6c 6c 43 6f |ForeColo|r(ballCo|
|00002160| 6c 6f 72 29 3b 0d 09 44 | 72 61 77 53 74 72 69 6e |lor);..D|rawStrin|
|00002170| 67 28 27 42 6f 62 27 29 | 3b 0d 45 4e 44 3b 09 7b |g('Bob')|;.END;.{|
|00002180| 20 4e 65 77 42 61 6c 6c | 20 7d 0d 0d 0d 42 45 47 | NewBall| }...BEG|
|00002190| 49 4e 09 20 20 20 7b 20 | 4d 61 69 6e 20 62 6f 64 |IN. { |Main bod|
|000021a0| 79 20 6f 66 20 70 72 6f | 67 72 61 6d 20 53 69 6c |y of pro|gram Sil|
|000021b0| 6c 79 42 61 6c 6c 73 20 | 7d 0d 09 49 6e 69 74 69 |lyBalls |}..Initi|
|000021c0| 61 6c 69 7a 65 3b 0d 09 | 0d 09 52 65 70 65 61 74 |alize;..|..Repeat|
|000021d0| 0d 09 09 4e 65 77 42 61 | 6c 6c 3b 0d 09 55 6e 74 |...NewBa|ll;..Unt|
|000021e0| 69 6c 20 42 75 74 74 6f | 6e 3b 0d 09 0d 45 4e 44 |il Butto|n;...END|
|000021f0| 2e 09 7b 20 53 69 6c 6c | 79 42 61 6c 6c 73 20 7d |..{ Sill|yBalls }|
|00002200| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002280| 00 00 01 00 00 00 01 69 | 00 00 00 69 00 00 00 46 |.......i|...i...F|
|00002290| 00 04 4e ba 13 b8 60 32 | 42 67 20 54 2f 10 4e ba |..N...`2|Bg T/.N.|
|000022a0| 13 ac 42 67 20 54 2f 28 | 00 04 4e ba 13 a0 60 1a |..Bg T/(|..N...`.|
|000022b0| 0c 53 69 6c 6c 79 42 61 | 6c 6c 73 2e 70 61 02 00 |.SillyBa|lls.pa..|
|000022c0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 64 01 80 |..TEXTMP|S ...d..|
|000022d0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 64 01 80 |..TEXTMP|S ...d..|
|000022e0| 00 00 62 7f 00 00 00 00 | 00 00 00 00 00 00 00 00 |..b.....|........|
|000022f0| 00 00 9f b9 93 40 00 00 | 21 81 00 00 01 af 48 6e |.....@..|!.....Hn|
|00002300| ff ee 2f 3c 00 00 00 01 | a8 80 70 00 2d 40 ff a6 |../<....|..p.-@..|
|00002310| 70 00 2d 40 ff ac 42 67 | 48 6e ff 9a 42 67 4e ba |p.-@..Bg|Hn..BgN.|
|00002320| 14 72 3e 1f 3c 2e ff b0 | 70 00 2d 40 ff 72 2d 6e |.r>.<...|p.-@.r-n|
|00002330| 00 08 ff 78 3d 46 ff 7c | 70 00 2d 40 ff 82 70 00 |...x=F.||p.-@..p.|
|00002340| 2d 40 ff 96 42 67 48 6e | ff 66 42 67 4e ba 14 8c |-@..BgHn|.fBgN...|
|00002350| 3e 1f 3c 2e ff 7c 70 00 | 2d 40 ff a6 70 00 2d 40 |>.<..|p.|-@..p.-@|
|00002360| ff ac 3d 46 ff b0 42 6e | ff b6 42 67 48 6e ff 9a |..=F..Bn|..BgHn..|
|00002370| 42 67 4e ba 14 0c 3e 1f | 38 2e ff c2 3d 44 ff 64 |BgN...>.|8...=D.d|
|00002380| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 65 09 09 |...H..Mo|naco.e..|
|00002390| 54 6f 20 64 65 6d 6f 6e | 73 74 72 61 74 65 20 61 |To demon|strate a|
|000023a0| 20 73 69 6d 70 6c 00 06 | 00 04 00 31 00 0a 01 49 | simpl..|...1...I|
|000023b0| 01 ea 00 31 00 0a 01 49 | 01 ea 9f 8a a5 e6 00 00 |...1...I|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 19 |........|........|
|000023d0| 03 00 80 00 00 00 03 33 | 2e 30 0e 4d 50 57 20 50 |.......3|.0.MPW P|
|000023e0| 61 73 63 61 6c 20 33 2e | 30 00 00 01 00 00 00 01 |ascal 3.|0.......|
|000023f0| 69 00 00 00 69 00 00 00 | 46 00 21 64 f4 06 9e 00 |i...i...|F.!d....|
|00002400| 00 00 1c 00 46 00 01 4d | 50 53 52 00 00 00 12 76 |....F..M|PSR....v|
|00002410| 65 72 73 00 00 00 1e 03 | ed ff ff 00 00 00 00 00 |ers.....|........|
|00002420| 00 00 00 00 02 ff ff 20 | 00 00 4c 00 21 63 48 00 |....... |..L.!cH.|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+